package com.prs.crm.domain.crm;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.crm.Province;
@Entity
@Table(name = "crm_city")
public class City extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1795379611414836565L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	private String cityName;
	@ManyToOne(fetch=FetchType.LAZY)
	private Province province;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public Province getProvince() {
		return province;
	}
	public void setProvince(Province province) {
		this.province = province;
	}
}
